import '../../css/header.stylus'
import { getNewsClassify } from '../../api/ajax';


const init = () => {
    initEvent();
    headerNavClassify();
}

const initEvent = () => {

}

const headerNavClassify = async() => {
    let res = await getNewsClassify();
    let navArr = res.data;
    $.each(navArr, function(index, item) {
        $('.navbar-nav.navbar-left').append(`<li class="active">
        <a href="#">${item}</a>
    </li>`)
    })
}

init();